#include <QDebug>
#include "Downloadable.h"
//
Downloadable::Downloadable(  ) 
	: QObject()
{
	downloader = new FileDownloader();
	connect(downloader, SIGNAL(fileDone(QString)), this, SLOT(downloadFinished(QString)));
}
Downloadable::~Downloadable(){
	
}
//
void Downloadable::download(){
	//qDebug()<<"Downloadable::download()";
	baseDownload();
}
void Downloadable::baseDownload(){
	QString url = getUrl();
	if (url!=QString::null){
		downloader->download(getUrl());
	}
}
